package com.be.beadmin.system.task;

import com.be.beadmin.system.service.ProductMaterialService.WorkOrderInforPmService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.text.ParseException;
import java.util.List;

/**
 * @Description:
 * @author: Jiaming Zheng
 * @Date: Create in 15:03 2023/12/7
 * @Modified By:
 **/
@Component
public class TaskProcessor {
    @Autowired
    private WorkOrderInforPmService workOrderInforPmService;
    /**
     * 下发工单
     */
    public void issueWorkOrderTask(List<String> productIds) {

        try {
            workOrderInforPmService.issueWorkOrderInforByPage(productIds);
        } catch (ParseException e) {
            throw new RuntimeException(e);
        }

    }
}
